package com.lanou.elh.sysmanage.system_order.entity;

import java.util.Date;

public class Order {
//    订单id
    private String order_id;
//    支付金额
    private Double payment;
//    支付类型 1在线支付 2货到付款
    private Integer payment_type;
//    邮费
    private Double post_fee;
//    状态 0未付款 1已付款 2未发货 3已发货 4交易成功 5交易关闭 6交易失败
    private Integer status;
//    订单创建时间
    private Date create_time;
//    订单更新时间
    private Date update_time;
//    付款时间
    private Date payment_time;
//    发货时间
    private Date consign_time;
//    交易完成时间
    private Date end_time;
//    交易关闭时间
    private Date close_time;
//    物流名称
    private String shipping_name;
//    物流单号
    private String shipping_code;
//    用户id
    private Long user_id;
//    买家留言
    private String buyer_message;
//    买家昵称
    private String buyer_nick;
//    买家是否已经评价
    private Boolean buyer_comment;

    public Order() {
    }

    public Order(String order_id, Double payment, Integer payment_type, Double post_fee, Integer status, Date create_time, Date update_time, Date payment_time, Date consign_time, Date end_time, Date close_time, String shipping_name, String shipping_code, Long user_id, String buyer_message, String buyer_nick, Boolean buyer_comment) {
        this.order_id = order_id;
        this.payment = payment;
        this.payment_type = payment_type;
        this.post_fee = post_fee;
        this.status = status;
        this.create_time = create_time;
        this.update_time = update_time;
        this.payment_time = payment_time;
        this.consign_time = consign_time;
        this.end_time = end_time;
        this.close_time = close_time;
        this.shipping_name = shipping_name;
        this.shipping_code = shipping_code;
        this.user_id = user_id;
        this.buyer_message = buyer_message;
        this.buyer_nick = buyer_nick;
        this.buyer_comment = buyer_comment;
    }

    public String getOrder_id() {
        return order_id;
    }

    public void setOrder_id(String order_id) {
        this.order_id = order_id;
    }

    public Double getPayment() {
        return payment;
    }

    public void setPayment(Double payment) {
        this.payment = payment;
    }

    public Integer getPayment_type() {
        return payment_type;
    }

    public void setPayment_type(Integer payment_type) {
        this.payment_type = payment_type;
    }

    public Double getPost_fee() {
        return post_fee;
    }

    public void setPost_fee(Double post_fee) {
        this.post_fee = post_fee;
    }

    public Integer getStatus() {
        return status;
    }

    public void setStatus(Integer status) {
        this.status = status;
    }

    public Date getCreate_time() {
        return create_time;
    }

    public void setCreate_time(Date create_time) {
        this.create_time = create_time;
    }

    public Date getUpdate_time() {
        return update_time;
    }

    public void setUpdate_time(Date update_time) {
        this.update_time = update_time;
    }

    public Date getPayment_time() {
        return payment_time;
    }

    public void setPayment_time(Date payment_time) {
        this.payment_time = payment_time;
    }

    public Date getConsign_time() {
        return consign_time;
    }

    public void setConsign_time(Date consign_time) {
        this.consign_time = consign_time;
    }

    public Date getEnd_time() {
        return end_time;
    }

    public void setEnd_time(Date end_time) {
        this.end_time = end_time;
    }

    public Date getClose_time() {
        return close_time;
    }

    public void setClose_time(Date close_time) {
        this.close_time = close_time;
    }

    public String getShipping_name() {
        return shipping_name;
    }

    public void setShipping_name(String shipping_name) {
        this.shipping_name = shipping_name;
    }

    public String getShipping_code() {
        return shipping_code;
    }

    public void setShipping_code(String shipping_code) {
        this.shipping_code = shipping_code;
    }

    public Long getUser_id() {
        return user_id;
    }

    public void setUser_id(Long user_id) {
        this.user_id = user_id;
    }

    public String getBuyer_message() {
        return buyer_message;
    }

    public void setBuyer_message(String buyer_message) {
        this.buyer_message = buyer_message;
    }

    public String getBuyer_nick() {
        return buyer_nick;
    }

    public void setBuyer_nick(String buyer_nick) {
        this.buyer_nick = buyer_nick;
    }

    public Boolean getBuyer_comment() {
        return buyer_comment;
    }

    public void setBuyer_comment(Boolean buyer_comment) {
        this.buyer_comment = buyer_comment;
    }

    @Override
    public String toString() {
        return "Order{" +
                "order_id='" + order_id + '\'' +
                ", payment=" + payment +
                ", payment_type=" + payment_type +
                ", post_fee=" + post_fee +
                ", status=" + status +
                ", create_time=" + create_time +
                ", update_time=" + update_time +
                ", payment_time=" + payment_time +
                ", consign_time=" + consign_time +
                ", end_time=" + end_time +
                ", close_time=" + close_time +
                ", shipping_name='" + shipping_name + '\'' +
                ", shipping_code='" + shipping_code + '\'' +
                ", user_id=" + user_id +
                ", buyer_message='" + buyer_message + '\'' +
                ", buyer_nick='" + buyer_nick + '\'' +
                ", buyer_comment=" + buyer_comment +
                '}';
    }
}
